<?php

namespace AdminModule;

abstract class BasePresenter extends \Nette\Application\UI\Presenter {

    /**
     * @var Doctrine\ORM\EntityManager 
     */
    protected $entityManager;

    protected function startup() {
        parent::startup();
        $this->entityManager = $this->context->entityManager;
    }

    public function beforeRender() {
        parent::beforeRender();
        $this->template->menuLeftside = array(
            'individualAnalysis' => array(
                'Individuální analýza' => '',
                'Karta pacienta' => 'PatientCard:find',
            ),
            'groupAnalysis' => array(
                'Skupinová analýza' => '',
            ),
            'accunt' => array(
                'Správa účtu' => 'Account:default',
                'Osobní nastavení' => 'Account:default',
                'Odhlášení' => 'Sign:Out',
            ),
        );
    }

}
